﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NestedMasterPage.master" AutoEventWireup="true" CodeBehind="WebAddressEdit.aspx.cs" Inherits="Web.WebAddressEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
       <p style="padding:10px 0px 10px 0px;">
         <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="sitmap"
        Style="font-family: 幼圆; font-size: medium" Font-Names="Verdana" Font-Size="0.8em"  PathSeparator=" > ">
        <PathSeparatorStyle Font-Bold="True" ForeColor="#990000" />
        <CurrentNodeStyle ForeColor="#333333" />
        <NodeStyle Font-Bold="True" />
        <RootNodeStyle Font-Bold="True"  />
    </asp:SiteMapPath>
    </p>
    <link href="css/bootstrap.min.css" rel="stylesheet"  />
    <div class="panel panel-default">
        <div class="panel-body">
            <form method="post" id="frm">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>编辑</h5>
                                <input type="hidden" id="Id" name="Id" value="<%=model.Id %>"
                                    class="form-control" />
                                <input type="hidden" id="user_number" name="user_number" value="<%=model.user_number %>" class="form-control" />
                                <div class="ibox-tools">

                                    <button id="save" class="btn btn-primary  btn-xs" type="submit">保存</button>
                                </div>
                            </div>
                         
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10">
                                    <input type="text" id="address_msg" name="address_msg" value="<%=model.address_msg %>" placeholder=" " class="form-control" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
     <script src="js/jquery.form.js"></script>
     <script>
         $(function () {
             var options = {
                 target: '#frm',
                 success: suncess,
                 url: "../Hanlder/AddressHandler.ashx?Method=Edit",
                 type: "post",
                 dataType: "json",
                 timeout: 3000
             }
             $("#frm").ajaxForm(options);
             function suncess(data) {
                 var res = data;
                 if (res.states == 1) {
                     alert(res.msg);
                   
                 }
                 else {
                     alert('操作成功');
                   
                 }
             }
         })
    </script>
</asp:Content>
